export const routerData = [
  {
    path: '/workbench',
    name: 'workbench',
    redirect: '/workbench/ordering',
    meta: {
      icon: 'HomeFilled',
      title: '工作台'
    },
    children: [
      {
        path: '/workbench/ordering',
        name: 'workbench-ordering',
        meta: {
          icon: 'ShoppingCart',
          title: '点餐台'
        },
        component: () => import('@/views/workbench/ordering/index.vue')
      },
      {
        path: '/workbench/kitchen',
        name: 'kitchen',
        meta: {
          icon: 'KnifeFork',
          title: '后厨'
        },
        component: () => import('@/views/workbench/kitchen/index.vue')
      },
      
    ]
  },
  {
    path: '/dashboard',
    name: 'dashboard',
    meta: {
      icon: 'List',
      title: '报表'
    },
    component: () => import('@/views/dashboard/index.vue')
  },
  {
    path: '/store',
    name: 'store',
    redirect: '/store/table',
    meta: {
      icon: 'Shop',
      title: '门店'
    },
    children: [
      {
        path: '/store/table',
        name: 'table',
        meta: {
          icon: 'User',
          title: '餐台管理'
        },
        component: () => import('@/views/store/table/index.vue')
      }
    ]
  },
  {
    path: '/dish',
    name: 'dish',
    redirect: '/dish/category',
    meta: {
      icon: 'Menu',
      title: '菜品'
    },
    children: [
      {
        path: '/dish/list',
        name: 'list',
        meta: {
          icon: 'Folder',
          title: '菜品列表'
        },
        component: () => import('@/views/dish/list/index.vue')
      },
      {
        path: '/dish/category',
        name: 'category',
        meta: {
          icon: 'Goods',
          title: '菜品分类'
        },
        component: () => import('@/views/dish/category/index.vue')
      },
      {
        path: '/dish/taste',
        name: 'taste',
        meta: {
          icon: 'IceTea',
          title: '菜品口味'
        },
        component: () => import('@/views/dish/taste/index.vue')
      }
    ]
  },
  {
    path: '/order',
    name: 'order',
    redirect: '/order/management',
    meta: {
      icon: 'Management',
      title: '订单'
    },
    children: [
      {
        path: '/order/management',
        name: 'order-management',
        meta: {
          icon: 'Sell',
          title: '订单管理'
        },
        component: () => import('@/views/order/management/index.vue')
      }
    ]
  },
  {
    path: '/market',
    name: 'market',
    meta: {
        icon: 'BellFilled',
        title: '营销'
    },
    children: [
        {
            path: '/market/management',
            name: 'market-management',
            meta: {
                icon: 'Discount',
                title: '套餐团购'
            },
            component: () => import('@/views/market/management/index.vue')
        }
    ]
},
{
    path: '/system',
    name: 'system',
    meta: {
        icon: 'BellFilled',
        title: '系统'
    },
    children: [
        {
            path: '/system/menu',
            name: 'system-menu',
            meta: {
                icon: 'Discount',
                title: '菜单'
            },
            component: () => import('@/views/system/menu/index.vue')
        },
        {
            path: '/system/role',
            name: 'system-role',
            meta: {
                icon: 'Discount',
                title: '角色'
            },
            component: () => import('@/views/system/role/index.vue')
        },
        {
            path: '/system/user',
            name: 'system-user',
            meta: {
                icon: 'Discount',
                title: '用户'
            },
            component: () => import('@/views/system/user/index.vue')
        }
    ]
}
];
